package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.CellSingleInventoryProduct;
import com.wing.cabinet.model.request.CellSingleInventoryProductForm;
import com.wing.cabinet.model.response.CellInventorySpaceVO;
import com.wing.cabinet.model.response.CellSingleInventoryProductExportVO;
import com.wing.cabinet.model.response.CellSingleInventoryProductVO;
import com.wing.cabinet.model.response.CelllnventoryAlarmExportVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 售刀柜sku库存(某个柜子)-Service
 *
 * @author
 */
public interface CellSingleInventoryProductService extends IService<CellSingleInventoryProduct> {

    /**
     * 添加
     *
     * @param cellSingleInventoryProductForm
     * @return
     */
    int add(CellSingleInventoryProductForm cellSingleInventoryProductForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<CellSingleInventoryProductVO> list4app(Map<String, Object> params);

    List<CellSingleInventoryProductVO> getCabSkuInventory4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<CellSingleInventoryProductVO> pageList4app(Page page, Map<String, Object> params);

    Page<CellSingleInventoryProductVO> pageList4Alarm(Page page, Map<String, Object> params);

    List<CelllnventoryAlarmExportVO> getCelllnventoryAlarmExport(Map<String, Object> params);

    List<CellSingleInventoryProductVO> list4Alarm(Map<String, Object> params);

    Integer count4Alarm(Map<String, Object> params);

    Page<CellSingleInventoryProductVO> pageListSku4app(Page page, Map<String, Object> params);

    Page<CellSingleInventoryProductVO> pageListAlarm4app(Page page, Map<String, Object> params);

    Page<CellSingleInventoryProductVO> pageList4MainCab(Page page, Map<String, Object> params);

    Page<CellSingleInventoryProductVO> pageList4ChildCab(Page page, Map<String, Object> params);

    List<CellSingleInventoryProductVO> listAlarm4app( Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    CellSingleInventoryProductVO get4appById(Long id);

    Page<CellSingleInventoryProductVO> pageListPressCabinet(Page page, Map<String, Object> params);

    /**
     * 导出按主柜库存数据
     * @return
     */
    List<CellSingleInventoryProductVO> exportPressCabinet();

    Page<CellSingleInventoryProductVO> getInventoryBySkuCodeAndBelongCabinet(Page page, Map<String, Object> params);

    List<CellSingleInventoryProductVO> getAlarmInformation();

    /**
     * 告警设置的阈值为空操作
     */
    void upAlarmThreshold(List<CellSingleInventoryProductVO>list);

    Integer countSkuByMainCabCode(String mainCabCode);

    List<CellSingleInventoryProductExportVO> exportList(Map queryParam);

    List<CellSingleInventoryProductExportVO> exportChild(Map queryParam);
}
